const path = require("path");

// \a\b\c\d\e\b\hello
// \a\b\c\d\e\hello
console.log(path.join("/a", "b/c", "./", "d/e/b", "../", "hello"));

/*
F:\code-211
cd ./a/b/c/d      F:\code-211/a/b/c/d 
cd  ../../        F:\code-211/a/b
cd ./c            F:\code-211/a/b/c
*/
// F:\code-211\a\b\c
console.log(path.resolve("./a/b/c/d", "../../", "./c"));

// const m1 = require("./js/m1.js"); //exports

// console.log(m1);
// console.log(m1.username);
// m1.say();

// const os = require("os");

// console.log(os.hostname());
// console.log(os.type());
// console.log(os.platform());
// console.log(os.arch());
// console.log(os.release());
